package com.softer.wxzj.controller;

import com.github.pagehelper.PageInfo;
import com.softer.wxzj.common.aop.annotation.LogRecord;
import com.softer.wxzj.common.aop.enums.LogOperationType;
import com.softer.wxzj.common.aop.enums.LogOperationUnit;
import com.softer.wxzj.common.entity.Page;
import com.softer.wxzj.entity.AccReverseRecord;
import com.softer.wxzj.service.AccReverseRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @program: wxzj
 * @author: CDG
 * @date: 2019/7/31
 **/
@RestController
@RequestMapping("/accReverseRecord")
@Slf4j
public class AccReverseRecordController {
    @Autowired
    private AccReverseRecordService accReverseRecordService;

    /**
     * 冲正业务查询列表
     *
     * @param page
     * @param accReverseRecord
     * @param fuzzy
     * @return
     */
    @RequestMapping("/getList")
    @LogRecord(description = "冲正业务查询列表", operationUnit = LogOperationUnit.ACC_KEEP_ACCOUNT, operationType = LogOperationType.SELECT)
    public PageInfo<AccReverseRecord> getList(Page page, AccReverseRecord accReverseRecord, String fuzzy) {
        return accReverseRecordService.getList(page, accReverseRecord, fuzzy);
    }
}
